package com.cyh.testdesignpattern.factory.factorymethod.order;

import com.cyh.testdesignpattern.factory.factorymethod.pizza.Pizza;

public abstract class OrderPizza {
    public OrderPizza(String orderType) {
        Pizza pizza = null;
        pizza = createPizza(orderType);
        pizza.prepare();
        pizza.bake();
        pizza.cut();
        pizza.box();
    }
    abstract Pizza createPizza(String orderType);
}
